
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@page import="com.ares.service.bean.BeanObjetivo" %>
<%@page import="com.ares.service.bean.BeanMeta" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="<%=request.getContextPath()%>/js/js/sevde.js"></script>
        <script type="text/javascript" src="<%=request.getContextPath()%>/js/js/prototype.js"></script>
        <script type="text/javascript" src="<%=request.getContextPath()%>/js/js/collapse.js"></script>

        <script type="text/javascript" src="<%=request.getContextPath()%>/js/js/util.js"></script>
        <link href="<%=request.getContextPath()%>/css/miestilo.css" rel="stylesheet" type="text/css">


    </head>
    <body style="background: #eee">


        <html:form action="evaluacion">


            <table class="tablaingresos" align="center"  >
                <tr>
                    <td align="center">
                        <table  id="tb_opciones" class="tb_opciones" border="0"  >
                            <tr>
                                <td colspan="7" align="center" class="tituloJsp">
                                    Evaluación de Objetivos 2011
                                </td>

                            </tr>
                            <tr>
                                <th></th>
                                <th></th>
                                <th></th>
                                <th></th>
                                <th> </th>
                                <th></th>
                                <th></th>
                            </tr>
                            <tr>
                                <th>Evaluado :</th>
                                <th><label class="labelopciones"><c:out value="${sessionScope.usuarioSurb.strNombreComp}" /></label> </th>
                                <th class="espaciosEnBlanco"> </th>
                                <th>Evaluador :</th>
                                <th><label class="labelopciones"><c:out value="${sessionScope.session_usuario.strName}" /></label> </th>
                                <th class="espaciosEnBlanco"></th>
                                <th></th>
                            </tr>
                            <tr>
                                <th>Puesto :</th>
                                <th><label  class="labelopciones" ><c:out value="${sessionScope.usuarioSurb.strDescrip_Idp}" /></label></th>
                                <th></th>
                                <th>Puesto :</th>

                                <th><label class="labelopciones" ><c:out value="${sessionScope.session_usuario.strDescrip_Idp}"  /></label> </th>
                                <th></th>
                                <th>

                                </th>
                            </tr>
                            <tr>
                                <th>Área :</th>
                                <th><label class="labelopciones" ><c:out value="${sessionScope.usuarioSurb.strArea}" /></label> </th>
                                <th></th>
                                <th></th>
                                <th></th>
                                <th> </th>
                                <th></th>
                            </tr>


                        </table>

                    </td>
                </tr>
                <tr>
                    <td>
                        <HR>
                    </td>






                </tr>
                <tr align="center">

                    <td  >
                        <img src="images/plan.png" >

                        <img src="images/acom.png">

                        <img src="images/veri.png">

                    </td>

                </tr>
                <tr>

                    <td>
                        <HR>
                    </td>


                </tr>

                <tr>
                    <td align="center" class="tablaingresos" >
                        <table id="tablaColap" cellspacing="0" cellpadding="0"  border="0" >

                            <c:if test="${!empty sessionScope.lstpilares}">

                                <tr  class="labelmetas" >
                                    <th style="background: #DBE5F1;width: 19px"  >
                                    <th style="background: #DBE5F1;width: 19px">
                                    <th style="background: #DBE5F1;width: 24px">
                                    <th style="background: #DBE5F1;width: 145px" >
                                    <th style="background: #DBE5F1" class="labelAME"> Aceptable
                                    <th style="background: #DBE5F1" class="labelAME"> Mejorado
                                    <th style="background: #DBE5F1" class="labelAME"> Excelente
                                    <th style="width: 69px">
                                    <th style="width: 44px">
                                </tr>

                                <c:forEach items="${sessionScope.lstpilares}" var="jbean">

                                    <tr id='<c:out value="${jbean.strCod}"/>' >
                                        <td  style="background: #1F497D ; color: #ffffff "><img src="images/nolines_minus.gif"  alt=""></td>
                                        <td  style="background: #1F497D ; color: #ffffff "><input type="checkbox" id='<c:out value="${jbean.strCod}" />' value='<c:out value="${jbean.strCod}" />' disabled name="chkpilar" /> </td>
                                        <td  align="left" colspan="5" style="background: #1F497D ; color: #ffffff "class="labelpilares"><span><c:out value="${jbean.strDes}" /></span></td>
                                        <td  class="tdinputval"   >  <input class="inputval"   maxlength="5" id="txtpesoP" value='<c:out value="${jbean.dblValor}" />'  readonly/>% </td>
                                        <td  style="width: 44px" ></td>
                                    </tr>

                                    <c:if test="${!empty sessionScope.lstObjetivo}">


                                        <c:forEach items="${sessionScope.lstObjetivo}" var="obj">
                                            <c:if test="${obj.stridpilar == jbean.strCod}">
                                                <tr  id='<c:out value="${jbean.strCod}-${obj.stridobjetivo}" />'>

                                                    <td style="background: #B6DDE8" ><img src="images/nolines_minus.gif" alt=""   ></td>
                                                        <c:if test="${obj.intflag_org == 1}">
                                                        <td style="background: #B6DDE8"> <input type="checkbox" id='<c:out value="${jbean.strCod}-${obj.stridobjetivo}" />'  name="chkObjetivo" onclick="setValor(this);desabilitarCheck(this.id);"  disabled /> </td>
                                                        </c:if>
                                                        <c:if test="${obj.intflag_org == 0}">
                                                        <td style="background: #B6DDE8"> <input type="checkbox" id='<c:out value="${jbean.strCod}-${obj.stridobjetivo}" />'   name="chkObjetivo" disabled /> </td>
                                                        </c:if>
                                                    <td align="left"  style="background: #B6DDE8" class="labelobjetivos"><label id='lbl1' ><c:out value="${obj.strDesc_indice}" /></label></td>
                                                    <td align="left"  style="background: #B6DDE8" colspan="4" class="labelobjetivos"><label id='lbl1' ><c:out value="${obj.strdesobjetivo}" /></label> </td>

                                                    <td class="tdinputval"  >  <input class="inputval"     value='<c:out value="${obj.dblvalor}" />' readonly />%   </td>
                                                    <td style="width: 44px" ></td>

                                                </tr>


                                                <c:if test="${!empty sessionScope.lstMetas}">


                                                    <c:forEach items="${sessionScope.lstMetas}" var="mta">


                                                        <c:if test="${mta.stridobjetivo== obj.stridobjetivo}">



                                                            <tr   id='<c:out value="${jbean.strCod}-${obj.stridobjetivo}-${mta.stridmeta}" />'  >


                                                                <c:if test="${mta.intflag_org == 1 }">
                                                                    <td style="background: #BDBDBD " width="2%"></td>
                                                                    <td style="background: #BDBDBD " width="2%"> <input type="checkbox" id='<c:out value="${jbean.strCod}-${obj.stridobjetivo}-${mta.stridmeta}" />'  disabled  name="chkMeta"   />
                                                                    <td style="background: #BDBDBD " width="4%" class="labelmetas"><label id='lblMeta'  ><c:out  value="${mta.strDesc_indice}"/> </label></td>
                                                                    <td style="background: #BDBDBD " width="18%" class="labelmetas" align="left"><label id='lblMeta'  ><c:out  value="${mta.strdesmeta}"/> </label></td>
                                                                    <td style="background: #BDBDBD "  width="15%" class="labelAME" ><label id='lblAcep'  ><c:out  value="${mta.straceptable}"/></label> </td>
                                                                    <td style="background: #BDBDBD " width="15%" class="labelAME" ><label id='lblMejor'  ><c:out  value="${mta.strmejorado}"/></label> </td>
                                                                    <td style="background: #BDBDBD " width="15%" class="labelAME" ><label id='lblExce'  > <c:out  value="${mta.strexcelente}"/></label></td>
                                                                    <td   class="tdinputval"  > <input class="inputval"  readonly value='<c:out value="${mta.dblvalor}" />' />%</td>
                                                                    <!--                                                                    <td style="background: #A4A4A4 " align="center" > <input class="inputvalDes"   readonly  name="peso" value='c:out value="{mta.dblCalc}" />'/>%</td>-->
                                                                    <c:if test="${mta.dblCalc != 0 }">
                                                                        <td    class="tdinputvalcalc"  >
                                                                            <label class="inputvalDes"  ><c:out value="${mta.dblCalc}%" /></label>


                                                                        </td>

                                                                    </c:if>

                                                                    <c:if test="${mta.dblCalc == 0 }">
                                                                        <td style="width: 44px"  >
                                                                            <label   ></label>
                                                                        </td>
                                                                    </c:if>



                                                                </c:if>

                                                                <c:if test="${mta.intflag_org == 0}">
                                                                    <td style="background: #ffffff " width="2%" ></td>
                                                                    <td style="background: #ffffff " width="2%"> <input type="checkbox" id='<c:out value="${jbean.strCod}-${obj.stridobjetivo}-${mta.stridmeta}" />'  disabled name="chkMeta"  />
                                                                    <td style="background: #ffffff " width="4%" class="labelmetas"><label id='lblMeta'  ><c:out  value="${mta.strDesc_indice}"/></label> </td>
                                                                    <td style="background: #ffffff " width="18%" class="labelmetas"><label id='lblMeta'  ><c:out  value="${mta.strdesmeta}"/></label> </td>
                                                                    <td style="background: #ffffff "   class="labelAME"><label id='lblAcep'  > <c:out  value="${mta.straceptable}"/></label></td>
                                                                    <td style="background: #ffffff "  class="labelAME"><label id='lblMejor'  ><c:out  value="${mta.strmejorado}"/> </label></td>
                                                                    <td style="background: #ffffff "  class="labelAME"><label id='lblExce'  ><c:out  value="${mta.strexcelente}"/></label> </td>
                                                                    <td class="tdinputval" > <input class="inputval" readonly value='<c:out value="${mta.dblvalor}" />' />%</td>




                                                                    <c:if test="${mta.dblCalc != 0 }">
                                                                        <td   class="tdinputvalcalc"   >
                                                                            <label class="inputvalDes" ><c:out value="${mta.dblCalc}%" /></label>


                                                                        </td>

                                                                    </c:if>

                                                                    <c:if test="${mta.dblCalc == 0 }">
                                                                        <td   style="width: 44px" >
                                                                            <label  ></label>
                                                                        </td>
                                                                    </c:if>



                                                                </c:if>


                                                            </tr>
                                                        </c:if>

                                                    </c:forEach>

                                                </c:if>




                                            </c:if>

                                        </c:forEach>

                                    </c:if>

                                </c:forEach>


                            </c:if>


                            <tr>
                                <td colspan="9" align="left">
                                    <table  class="foottabla" border="0">

                                        <tr>
                                            <td colspan="2"  class="foottablaglosas" >(*)La suma total debe ser 100 %  </td>
                                            <td></td>
                                            <td></td>

                                            <td> </td>
                                            <td> </td>
                                            <td colspan="2" style="font-weight: bold">Total(*) </td>

                                            <td> </td>

                                            <c:if test="${dblpeso != null}">
                                                <td align="right" colspan="2" class="foottablaglosas" >  <label ><c:out value="${dblpeso}%">%</c:out> </label>   </td>
                                            </c:if>
                                            <c:if test="${dblpeso == null}">

                                                <td align="right" colspan="2">  <label ></label>   </td>
                                            </c:if>


                                        </tr>


                                        <tr><td colspan="2"  class="foottablaglosas">(**)La suma total organizacional no debe ser mayor a <c:out value="${sessionScope.usuarioSurb.dbltope_org}%">%</c:out></td>
                                            <td></td>
                                            <td></td>

                                            <td> </td>
                                            <td> </td>
                                            <td colspan="2" style="font-weight: bold">Total Objetivos Organiz.(**)</td>

                                            <td ></td>

                                            <c:if test="${totalObjOrg != null}">
                                                <td align="right" colspan="2" width="35px" class="foottablaglosas">

                                                    <label><c:out value="${totalObjOrg}%">%</c:out> </label>


                                                </td>
                                            </c:if>

                                            <c:if test="${totalObjOrg == null}">
                                                <td align="right" colspan="2">

                                                    <label></label>


                                                </td>
                                            </c:if>


                                        </tr>




                                    </table>


                                </td>


                            </tr>



                        </table>

                    </td>
                </tr>

            </table>


        </html:form>

    </body>

</html>


